//
//  BasePageUIViewController.m
//  ShareParking
//
//  Created by STAR on 2017/9/15.
//  Copyright © 2017年 zjw. All rights reserved.
//

#import "BasePageUIViewController.h"

@interface BasePageUIViewController ()

@end

@implementation BasePageUIViewController
- (void)loadView {
    [super loadView];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.slideBar.isUnifyWidth = YES;
  //  self.slideBar.itemColor = RGBA(29, 29, 38, 0.5);;
   // self.slideBar.itemSelectedColor = [UIColor color_main_50D2C2];
   // self.slideBar.sliderColor = [UIColor color_main_50D2C2];
    self.view.backgroundColor = [UIColor whiteColor];

}
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self configNavBackgroundColorUI];
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

- (void)configNavBackgroundColorUI {
   // [Utils SetNaviBarGrayStyle:self];
   // [Utils setNavigationBarLeftButtonWithImage:self imgName:@"back" actionName:@selector(back)];
    
}
- (void)back {
    [self.navigationController popViewControllerAnimated:YES];
}
#pragma mark - ScrollPageViewControllerProtocol
- (NSArray *)arrayForControllerTitles {
    return _titles;
}

- (UIViewController *)viewcontrollerWithIndex:(NSInteger)index {
    if (index <0 || index > self.arrayForControllerTitles.count) return nil;
    return _viewControllers[index];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
